<template>
  <el-image :src="src">
    <div slot="error">
      <img src="./head.jpg" alt="">
    </div>
  </el-image>
</template>

<script>
export default {
  props: {
    src: {
      type: String,
      required: true
    }
  }
}
</script>

<style scoped>
  /deep/ img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
  }
</style>
